package main

import (
	"log"

	"gitee.com/xuender/oils/gui"
	"gitee.com/xuender/pp/tray"
)

// nolint: gomnd
func main() {
	s := gui.NewGui()
	defer s.Close()

	s.Bind("doClick", func() { log.Println("点击") })
	// s.RunURL("http://www.baidu.com")
	s.HTML("/", `<html>
	<head><title>GUI测试</title></head>
	<body><button onclick="doClick()">点击测试</button></body>
	</html>`)
	s.Open("/", 800, 600)

	t := tray.Service{}

	go t.Run()

	s.Run()
}
